﻿/*
 * Class  :  Roles
 * Author : Chung Thành Phước 
 * Create Date: 18/12/2014
 * Update date: 18-12-2014 by Chung Thành Phước 
 * Reference: None
 */


namespace Roles
{
    public static class Untils
    {
        public static bool HasPermisstion(Enums.TypeaAudit audit, int permisstion)
        {
            return ((int)audit & permisstion) == (int)audit;
        }
        public static bool HasPermisstionPage(Enums.TypeaAudit audit, int permisstion)
        {
            return ((int)audit & permisstion) == (int)audit;
        }
    }
}
